﻿<%@ Page Language="C#" %>
<%@ Import Namespace="RssEasy.Core" %>
<%@ Import Namespace="RssEasy.Dal" %>
<%@ Import Namespace="LocalDAL" %>
<%
    HttpRequestHelper req = new HttpRequestHelper().request();
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>个人中心</title>
    <link href="/app/css/reset.css" rel="stylesheet" />
    <link href="/app/css/layout.css" rel="stylesheet" />
    <style type="text/css">
        body { color: #202020; }
        h1 { background: white; border: solid 1px #ccc; border-left: none; border-right: none; padding: 30px 0px; padding-left: 37px; }
    </style>
</head>
<body>
    <%
        AliWebLocalHelper webpay = new AliWebLocalHelper();
        webpay.request();
        if (!string.IsNullOrEmpty(webpay["fee"]))
        {
            webpay.keyvalue("id", webpay.unifyorders().Trim());
            webpay.submit();
        }
        else
        {
    %>
    <form method="post">
        <input type="number" name="fee" min="0" step="0.01" value="0.01" />
        <input type="text" name="mingcheng" value="测试啊" />
        <input type="text" name="myid" value="1" />
        <input type="hidden" name="orderid" value="2" />
        <input type="text" name="url" value="<% Response.Write(Request.Url.ToString()); %>" />
        <button type="submit">提交</button>
    </form>
    <button type="button" id="paybtn">支付</button>
    <script type="text/javascript">
        document.getElementById("paybtn").onclick=function()
        {
            document.getElementById("payform").submit();
        }
    </script>
    <%

        }
    %>
</body>
</html>
